function systemToEnglishDate(systemDate){
    systemDate = new String(systemDate);
    englishDate = new String();

    var year   = systemDate.substr(0, 4);
    var month  = systemDate.substr(5, 2);
    var day    = systemDate.substr(8, 2);

    englishDate = month + "/" + day + "/" + year;

    if (systemDate.length > 10){
        var hour   = systemDate.substr(11, 2);
        var min    = systemDate.substr(14, 2);
        var sec    = systemDate.substr(17, 2);

        englishDate += " "+hour+":"+min+":"+ sec;
    }

    return englishDate;

}

function systemToSpanishDate(systemDate){
    systemDate = new String(systemDate);
    spanishDate = new String();

    var year   = systemDate.substr(0, 4);
    var month  = systemDate.substr(5, 2);
    var day    = systemDate.substr(8, 2);

    spanishDate = day + "/" + month + "/" + year;

    if (systemDate.length > 10){
        var hour   = systemDate.substr(11, 2);
        var min    = systemDate.substr(14, 2);
        var sec    = systemDate.substr(17, 2);

        spanishDate += " "+hour+":"+min+":"+ sec;
    }

    return spanishDate;

}
